package com.dingli.admin.service.impl;

import com.dingli.admin.service.UpdateBank;
import com.dingli.framework.entity.Bank;
import com.dingli.framework.mapper.BankMapper;
import com.dingli.framework.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UpdateBankImpl implements UpdateBank {

    @Autowired
    private BankMapper bankMapper;

    @Override
    public Response<Bank> updateBank(Bank bank) {
        long bank1 = bankMapper.updateBank(bank);
        if(bank1 >= 1){
            return new Response(200, "修改成功");
        }else {
            return new Response(500, "修改失败");
        }
    }
}
